/* global axios */

export const loginPost = (user) =>
  axios.post('/login', user);

export const apiUser = () =>
  axios.get('/api/user');

export const registerPost = (user) =>
  axios.post('/register', user);

export const logoutPost = () =>
  axios.post('/logout');

export const systemUserList = () =>
  axios.get('/api/system/user/list');

export const systemUserRemove = (id) =>
  axios.post('/api/system/user/remove/' + id);

export const systemUserSave = (user) =>
  axios.post('/api/system/user/save', user);

export const profileChangePassword = (data) =>
  axios.post('/api/profile/changePassword', data);

export const archiverCategoryList = (id) =>
  axios.get('/api/archive/category/list/'+ id);

export const archiverCategorySave= (data) =>
  axios.post('/api/archive/category/save',data);

export const archiverCategoryRemove = (id) =>
  axios.post('/api/archive/category/remove/' + id);

export const archiverPatternList = (id) =>
  axios.get('/api/archive/pattern/list/' + id);

export const archiverPatternSave = (data) =>
  axios.post('/api/archive/pattern/save',data);

export const archiverPatternRemove = (id) =>
  axios.post('/api/archive/pattern/remove/' + id);
